<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var stu=Object(null);
        stu.name="css";
        stu.id="44219123"
        stu.age="18"
        stu.sex="girl"
        stu.major="IT"
        stu.fun=function(){
            console.log("姓名："+stu.name)
            console.log("身份证："+stu.id)
            console.log("年龄："+stu.age)
            console.log("性别："+this.sex)
            console.log("专业:"+this.major)
        }
        stu.fun();
    </script>
</body>
</html>